package com.wodsy.phoenix.dataobject.cms.model;

// Generated 2015-4-27 9:44:06 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

/**
 * IdxAdPic generated by hbm2java
 */
@Entity
@Table(name = "tb_idx_ad_pic", catalog = "cms")
public class IdxAdPic  extends PhoenixObject implements PhoenixRequest,PhoenixResponse  {

	private Integer id;
	private String picTitle;
	private String picUrl;
	private String rbg;
	private String picHref;
	private Integer picWeight;
	private String picAlt;
	private Integer status;
	private Date onlineTime;
	private Date offlineTime;
	private Date createTime;
	private Date updateTime;

	public IdxAdPic() {
	}

	public IdxAdPic(String picTitle, Date onlineTime, Date offlineTime,
			Date createTime) {
		this.picTitle = picTitle;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
	}

	public IdxAdPic(String picTitle, String picUrl, String rbg,
			String picHref, Integer picWeight, String picAlt, int status,
			Date onlineTime, Date offlineTime, Date createTime, Date updateTime) {
		this.picTitle = picTitle;
		this.picUrl = picUrl;
		this.rbg = rbg;
		this.picHref = picHref;
		this.picWeight = picWeight;
		this.picAlt = picAlt;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pic_title", nullable = false, length = 50)
	public String getPicTitle() {
		return this.picTitle;
	}

	public void setPicTitle(String picTitle) {
		this.picTitle = picTitle;
	}

	@Column(name = "pic_url", length = 200)
	public String getPicUrl() {
		return this.picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	@Column(name = "rbg", length = 7)
	public String getRbg() {
		return this.rbg;
	}

	public void setRbg(String rbg) {
		this.rbg = rbg;
	}

	@Column(name = "pic_href", length = 300)
	public String getPicHref() {
		return this.picHref;
	}

	public void setPicHref(String picHref) {
		this.picHref = picHref;
	}

	@Column(name = "pic_weight")
	public Integer getPicWeight() {
		return this.picWeight;
	}

	public void setPicWeight(Integer picWeight) {
		this.picWeight = picWeight;
	}

	@Column(name = "pic_alt", length = 50)
	public String getPicAlt() {
		return this.picAlt;
	}

	public void setPicAlt(String picAlt) {
		this.picAlt = picAlt;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "online_time", nullable = false, length = 19)
	public Date getOnlineTime() {
		return this.onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "offline_time", nullable = false, length = 19)
	public Date getOfflineTime() {
		return this.offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time",updatable=false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "IdxAdPic [id=" + id + ", picTitle=" + picTitle + ", picUrl="
				+ picUrl + ", rbg=" + rbg + ", picHref=" + picHref
				+ ", picWeight=" + picWeight + ", picAlt=" + picAlt
				+ ", status=" + status + ", onlineTime=" + onlineTime
				+ ", offlineTime=" + offlineTime + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}

	
}
